Configuration cInstallerFromArchive
{
    param (

	[Parameter(Mandatory)]
	[ValidateNotNullOrEmpty()]
	[PSObject]$ArchiveDefinition
    )

    #Log Message
    Log "cInstallerFromArchiveStart_$($ArchiveDefinition.uniqueKey)" {
        Message = "Start cInstallerFromArchive for $($ArchiveDefinition.UniqueKey)"
    } 


    #Uncompress the Archive in the targeted Folder (TODO : How manage clean folder before)
    Archive "UncompressArchive_$($ArchiveDefinition.uniqueKey)" {
        Ensure = $ArchiveDefinition.Ensure
        Path=$ArchiveDefinition.LocalPath
        Destination = $ArchiveDefinition.Destination
        Checksum = "ModifiedDate"
        Validate = $true
        Force = $true
    }

    #Log Message
    Log "cInstallerFromArchiveEnd_$($ArchiveDefinition.uniqueKey)" {
        Message = "End cInstallerFromArchive for $($ArchiveDefinition.UniqueKey)"
    } 


}

